﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Munim.Fame.Business.Service;
using Munim.Fame.Core.DomainModels;
using Ninject;

namespace Munim.Fame.Mvc.Controllers
{
    public class ControllerBase : Controller
    {
        [Inject]
        public IKernel Kernel { get; set; }
        [Inject]
        public IMediaService MediaService { get; set; }
    }

    public class HomeController : ControllerBase
    {
        public ActionResult Index()
        {
            //NHibernateHelper.Get((session, transaction) => { });
            IList<Media> mediae = MediaService.GetAll();

            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
